package com.logic.modular.gameCore.pay.drawCards.controller;

import com.logic.modular.gameCore.pay.drawCards.service.impl.CoreDrawServiceImpl;
import com.comment.pojo.domain.logic.core.CoreDraw;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import com.comment.util.message.ResponseResult;

import java.util.List;


/**
 * (CoreDraw)表服务控制层
 *
 * @author cxy
 * @since 2024-08-07 16:22:01
 */
@Api(tags = "(CoreDraw)") 
@Validated
@RestController
@AllArgsConstructor
@RequestMapping("/coreDraw")
public class CoreDrawController {
    @Resource
    private CoreDrawServiceImpl coreDrawService;
    
    @ApiOperation("获取列表")
    @PostMapping("/list")
    public ResponseResult<List<CoreDraw>> list() {
        return ResponseResult.success(coreDrawService.listCache());
    }
}
